package com.day07.entity;

public class CalcTest {
    public static void main(String[] args) {
        Calc calc = new Calc();
        calc.one = 100;
        calc.two = 200;
        int result = calc.add();// 方法的返回值返回到方法的调用点。
        int result1 = calc.sub();
        System.out.println(calc.one+"+"+calc.two+"="+result);
        System.out.println(result1);
    }
}
